package com.example.mytest

import android.annotation.SuppressLint
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    var  mHandler : Handler? = null
    private val TAG = "MainActivity"
    var mDataArrayList = ArrayList<String>()
    @SuppressLint("MissingInflatedId")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        mDataArrayList?.add("張三")
        mDataArrayList?.add("李四")
        mDataArrayList?.add("赵武老师就废了")
        mDataArrayList?.add("达到")
        mDataArrayList?.add("给大哥")
        mDataArrayList?.add("非官方的时光")
        mDataArrayList?.add("等会")
        mDataArrayList?.add("張")
        mDataArrayList?.add("張梵蒂冈")
        mDataArrayList?.add("張范德萨")
//        val sendMsg:TextView = findViewById(R.id.sendMsg)
//        var fl_flowlayout:MyFlowLayout = findViewById(R.id.fl_flowlayout)
//        if(mDataArrayList!= null){
//         val ataAdapter = DataAdapter(mDataArrayList)
//         fl_flowlayout.setAdapter(ataAdapter)

//        Log.e(TAG,"ddddd measureHeight=="+sendMsg.measuredHeight)
//        }

//        String
//        sendMsg.setOnClickListener(object : View.OnClickListener{
//            override fun onClick(v: View?) {
//                Log.e(TAG, "dddddd onClick sendMsg")
//
//            }
//        })

    }
}